﻿using SqlSugar;
using System;

namespace IconYuan.Model.Entity.Users
{
    /// <summary>
    /// 用户收货地址
    /// </summary>
    [SugarTable("uc_user_address")]
    public class UserAddress
    {
        /// <summary>
        /// 自增id
        /// </summary>
        [SugarColumn(IsPrimaryKey = true)]
        public int address_id { get; set; }
        /// <summary>
        /// 用户ID
        /// </summary>
        public int user_id { get; set; }
        /// <summary>
        /// 收货人姓名
        /// </summary>
        public string name { get; set; } = string.Empty;
        /// <summary>
        /// 联系方式
        /// </summary>
        public string phone { get; set; } = string.Empty;
        /// <summary>
        /// 省份ID
        /// </summary>
        public int province_id { get; set; }
        /// <summary>
        /// 城市ID
        /// </summary>
        public int city_id { get; set; }
        /// <summary>
        /// 区/县ID
        /// </summary>
        public int region_id { get; set; }
        /// <summary>
        /// 详细地址
        /// </summary>
        public string detail { get; set; } = string.Empty;
        /// <summary>
        /// 是否删除 0 未删除, 1 已删除
        /// </summary>
        public int is_delete { get; set; }
        /// <summary>
        /// 商城ID
        /// </summary>
        public int store_id { get; set; }
        public DateTime create_time { get; set; }
    }
}
